package com.io.reader1;
import java.io.*;

public class Test4 {

	public static void main(String[] args) throws IOException   {
		Reader fw=null;
		//1
		int length=0;
		char ch[]=null;
		try {
		fw = new
		FileReader("D:\\ѧϰ\\demotext.txt");
		//2
		ch=new char [1024] ;
		//3
		length=fw.read(ch) ;
		//4
		System. out. println (new String (ch, 0, length));
		} catch (IOException e) {
		e. printStackTrace() ;
		}finally {
		//�˴�ʡ�Թر���
		}

		
		
	}

}
